home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / System Extras Headers / GX Headers / graphicsBug library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.7 KB  |  93 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        graphicsBug library.h
  3.  
  4.     Copyright:    © 1984-1994 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef graphicsBugLibraryIncludes
  13. #define graphicsBugLibraryIncludes
  14.  
  15. #ifndef graphicsTypesIncludes
  16. #include "graphics types.h"
  17. /*    #include "math types.h"                                        */
  18. /*        #include <Types.h>                                        */
  19. /*            #include <ConditionalMacros.h>                        */
  20. /*            #include <MixedMode.h>                                */
  21. /*                #include <Traps.h>                                */
  22. #endif
  23.  
  24.     #ifdef __cplusplus
  25. extern "C" {
  26.     #endif
  27.  
  28. #define creatorType 'gBug'
  29.  
  30.     #ifdef __APPLEEVENTS__
  31. #define bugEventClass 'gBug'
  32.  
  33. #define getBugWindowEvent 'gBWi'
  34.  
  35. #define selectBugWindowPartEvent 'gBWP'
  36.  
  37. #define pasteBugTextEvent 'gBPa'
  38.  
  39. #define waitThenContinueEvent 'gBWa'
  40.  
  41. #define errorString 'errS'
  42.  
  43. #define chooseWindowPartBoolean 'cWPB'
  44.  
  45. #define quitGraphicsApBoolean 'qGAB'
  46.  
  47.     #endif
  48.  
  49. enum graphicsBugRequests {
  50.     noticeMessage,
  51.     warningMessage,
  52.     errorMessage,
  53.     debugMessage,
  54.     commandMessage
  55. };
  56.  
  57. enum graphicsBugCommands {
  58.     noAction,
  59.     executeCommand
  60. };
  61.  
  62. enum graphicsBugStatus {
  63.     graphicsBugReady,
  64.     graphicsBugRunning,
  65.     graphicsBugBusy,
  66.     lastCommandError
  67. };
  68.  
  69. #if defined(powerc) || defined (__powerc)
  70. #pragma options align=mac68k
  71. #endif
  72. struct graphicsBugParameters {
  73.     long                        message;
  74.     unsigned char                command;
  75.     unsigned char                status;
  76.     unsigned char                toggle;
  77.     char                        string[81];
  78. };
  79. #if defined(powerc) || defined(__powerc)
  80. #pragma options align=reset
  81. #endif
  82.  
  83. #define maximumIdle 25
  84.  
  85. extern boolean SendMessageToGraphicsBug(long command, const char *str, unsigned long num, boolean waitForCompletion);
  86. extern void DirectDebugMessageToGraphicsBug(void);
  87.     #ifdef __cplusplus
  88. }
  89.     #endif
  90.  
  91. #endif
  92.  
  93.